﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace appDataContracts
{
    [DataContract]
    public class SerializedProduct
    {
        [DataMember]
        public int PRODUCTID { get; set; }
        [DataMember]
        public String PRODUCTNAME { get; set; }
        [DataMember]
        public Decimal PRODUCTPRICE { get; set; }
        [DataMember]
        public String PRODUCTDESCRIPTION { get; set; }
        [DataMember]
        public String PRODUCTIMAGE { get; set; }
        [DataMember]
        public int SUPPLIERID { get; set; }        

        public SerializedProduct(int PRODUCTID, String PRODUCTNAME,
            Decimal PRODUCTPRICE, String PRODUCTDESCRIPTION, String PRODUCTIMAGE, int SUPPLIERID)
        {
            this.PRODUCTID = PRODUCTID;
            this.PRODUCTNAME = PRODUCTNAME;
            this.PRODUCTPRICE = PRODUCTPRICE;
            this.PRODUCTDESCRIPTION = PRODUCTDESCRIPTION;
            this.PRODUCTIMAGE = PRODUCTIMAGE;
            this.SUPPLIERID = SUPPLIERID;
        }
    }
}
